package com.elvish.efast.common.enums;

/**
 * 返回编码枚举类
 *
 * @author elvish
 * @date 2018/11/1 15:33
 * @blog oschina(https : / / my.oschina.net / xiaozhutefannao)
 */
public enum ResultCode {
    /**
     * 成功
     */
    SUCCESS(0, "操作成功"),
    /**
     * 失败
     */
    ERROR(-1, "系统错误"),

    /**
     * 服务器错误
     */
    SERVER_ERROR(500, "服务器错误");

    Integer code;
    String msg;

    private ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
